<? global $cat1,$cat2, $lg; ?>
<!--start tittle product-->

<div class="cleared reset-box"></div>
<div class="art-box art-sheet">
<div class="art-box-body art-sheet-body">
  <div class="art-layout-wrapper">
    <div class="art-content-layout">
      <div class="art-content-layout-row">
        <div class="art-layout-cell art-content">
          <div class="art-box art-post">
            <div class="art-box-body art-post-body">
              <div class="art-post-inner art-article">
                <h2 class="art-postheader">
                  <?=$title_bar;?>
                </h2>
                <? if($submenus){ ?>
                <?		
                    global $lg, $prefix_url, $FullUrl, $num_of_result;
                        $n = count($submenus);
                ?>
                <?
			for($i=0;$i<$n; $i++){
				$item = $submenus[$i];
				$link = $FullUrl . $prefix_url . $cat1["unique_key_$lg"] . "/" . $item["unique_key_$lg"] . "/";
				$name = $item['unique_key_'.$lg];
				$url_img = GetImage($item["img"]);
				if(!empty($name) && $name != ''){								
		?>
                <div class="art-postcontent">
                  <div class="art-content-layout-wrapper layout-item-0">
                    <div class="art-content-layout layout-item-1">
                      <div class="art-content-layout-row">
                        <div class="art-layout-cell layout-item-2" style="width: 100%;">
                          <p style="padding:10px; float:left; width:250px"><a href="<?=$link;?>"><img alt="<?=$item["unique_key_".$lg];?>" title="<?=$item["unique_key_".$lg];?>" src="<?=GetPHPThumb($url_img, 210, 210);?>" style="float: left;" /></a></p>
                          <div style="padding-left:20px;overflow:hidden; width:250px;">
                            <h2><a href="<?php echo $link; ?>" title="<?=$item['name_'.$_SESSION['lg']];?>">
                              <?=$item['name_'.$lg]?$item['name_'.$lg]:NO_NEWS?>
                              </a></h2>
                            <br/>
                            <a href="<?=$link;?>">
                            <?=$item['comp']==2?number_format($item['num_of_result_products']):number_format($item['num_of_articles']);?>
                            <?=$item['comp']==2?PRODUCTS:NEWS;?>
                            </a> <br/>
                            <?=!empty($cat1["desc_".$_SESSION['lg']])?$cat1["desc_".$_SESSION['lg']]:''?>
                            <br/>
                            <p style="color:#000000">
                              <?=!empty($item['des_'.$lg])?$item['des_'.$lg]:NO_NEWS;?>
                            </p>
                            <br/>
                            <?=$item['comp']==2?$item['total_product_views']?number_format($item['total_product_views']):0:($item['total_article_views']?number_format($item['total_article_views']):0);?>
                            <?=VIEW?>
                            <br />
                          </div>
                          <div style="float:right; top:0px;">
                            <p ><a href="<?=$link?>" class="art-button">Xem Danh Sách</a></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <?
	  	}}
	  ?>
                <? }else{
			print('<div class="updating">'.NO_NEWS.'</div>');
		} ?>
                <div class="cleared"></div>
              </div>
              <div class="cleared"></div>
            </div>
          </div>
          <div class="cleared"></div>
        </div>
      </div>
    </div>
  </div>
  <div class="cleared"></div>
  <div class="cleared"></div>
</div>
